package ca.newcommerce.youtube.events
{
    import ca.newcommerce.youtube.feeds.*;
    import flash.events.*;

    public class VideoFeedEvent extends Event
    {
        protected var _requestId:Number;
        protected var _feed:VideoFeed;
        public static const RELATED_VIDEOS_DATA_RECEIVED:String = "related_videos_data_received";
        public static const VIDEO_PLAYLIST_DATA_RECEIVED:String = "video_playlist_data_received";
        public static const VIDEO_FEED_READY:String = "video_feed_ready";
        public static const VIDEO_DATA_RECEIVED:String = "video_data_received";
        public static const USER_FAVORITES_DATA_RECEIVED:String = "user_favorites_data_received";
        public static const VIDEO_RESPONSE_DATA_RECEIVED:String = "video_response_data_received";

        public function VideoFeedEvent(param1:String, param2:Number, param3:VideoFeed)
        {
            super(param1);
            this._feed = param3;
            this._requestId = param2;
            return;
        }// end function

        public function get requestId() : Number
        {
            return this._requestId;
        }// end function

        override public function toString() : String
        {
            return "ca.newcommerce.youtube.events.VideoFeedEvent";
        }// end function

        public function get feed() : VideoFeed
        {
            return this._feed;
        }// end function

    }
}
